home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2894 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: xs4all.nl!not-for-mail
  2. From: yrozijn@xs4all.nl (Yvon Rozijn)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Passing arguments to a thread
  5. Date: 6 Feb 1996 18:59:20 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4f88e8$9bl@news.xs4all.nl>
  8. References: <4ed1eq$nfi@newsy.ifm.liu.se> <Z9W-x*5yf@yaps.rhein.de> <4f25d2$ak8@newsy.ifm.liu.se>
  9. NNTP-Posting-Host: mas01-09.dial.xs4all.nl
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11.  
  12. Martin Blom (d93marbl@isy.liu.se) wrote:
  13. : >> Is there a (nice) way to pass arguments to a new process?
  14. : I create it with dos.library/CreateNewProc().
  15. : But using NP_Arguments seems to be too much work.
  16. : I wish there was a NP_UserData...
  17.  
  18. There is... kind of:
  19.  
  20.    struct Process *proc;
  21.  
  22.    Forbid();
  23.    proc=CreateNewProc(...);
  24.    if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
  25.    Permit();
  26.  
  27. Yvon.
  28. -- 
  29.                  ___                                   _
  30.    Q          : |  #|           :  \|/  http://www. : [_]_
  31.  -<_>- Yvon   : | ==| yrozijn@  : >WWW< xs4all.nl/  : === ) Amiga
  32.   / \  Rozijn : `---' xs4all.nl :  /|\  ~yrozijn    :     O  4000
  33.